﻿using System;
using FluentValidation;

namespace Grundy.Message.Licensing
{
    public class CheckinRequestValidator : AbstractValidator<CheckinRequest>
    {
        public CheckinRequestValidator()
        {
            this.CascadeMode = CascadeMode.Continue;
            RuleFor(r => r.SessionId).NotEqual(Guid.Empty).WithMessage<CheckinRequest, Guid>("Session id is required for checkin.");
        }
    }
}